package com.hanock.sm.fork2d;

import android.graphics.RectF;

public class Circle extends Node {

	private RectF rect;
	
	public Circle() {
		this(0, 0, 0);
	}
	
	public Circle(float x, float y, float r) {
		rect = new RectF();
		
		set(x, y, r);
	}
	
	public void set(float x, float y, float r) {
		setSize(2*r, 2*r);
		setPosition(x, y);
	}
	
	@Override
	protected void draw(Canvas canvas) {
		getDesRect(rect);
		canvas.drawArc(rect);
	}
}
